/********************************************************************************
 *      Copyright:  (C) 2025 chenhongyu IOT STUDY
 *                  All rights reserved.
 *
 *       Filename:  bluez.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(17/07/25)
 *         Author:  chenhongyu <chenhongyu0822@163.com>
 *      ChangeLog:  1, Release initial version on "17/07/25 21:48:46"
 *                 
 ********************************************************************************/
#ifndef _BLUEZ_H
#define _BLUEZ_H

extern void ble_register_notify_callback(void (*cb)(const uint8_t *buf, int len));

extern int handle_properties_changed(DBusMessage *msg, uint8_t *buf);

extern int print_notify_value(DBusMessageIter *variant_iter, uint8_t *buf);

extern int call_method(DBusConnection *conn, const char *path, const char *interface, const char *method);

extern int send_command(DBusConnection *conn, const char* char_path, const char* cmd_str);

extern void *bluetooth_thread(void *arg);

#endif

